package edu.lingnan.rili.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 这是一个传输分页查询数据的vo类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("分页查询统一返回格式")
public class PagingQueryResult<T> implements Serializable {
    private static final long serialVersionUID = 2759685279968961010L;
    @ApiModelProperty("总页数")
    private int pageTotal;
    @ApiModelProperty("信息记录条数")
    private int rows;
    @ApiModelProperty("查询数据")
    private List<T> dataList;

}
